package com.huadi.ssm.service;

import com.huadi.ssm.mapper.ResearcherMapper;
import com.huadi.ssm.po.Researcher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ResearcherServiceImpl implements ResearcherService {

    @Autowired
    private ResearcherMapper researcherMapper;

    @Override
    public Researcher findByName(String name) {
        return researcherMapper.findByName(name);
    }

    @Override
    public int add(Researcher researcher) {
        return researcherMapper.add(researcher);
    }

    @Override
    public int edit(Researcher researcher) {
        return researcherMapper.edit(researcher);
    }

    @Override
    public int delete(String ids) {
        return researcherMapper.delete(ids);
    }

    @Override
    public List<Researcher> findList(Map<String, Object> queryMap) {
        return researcherMapper.findList(queryMap);
    }

    @Override
    public List<Researcher> findAll() {
        return researcherMapper.findAll();
    }

    @Override
    public int getTotal(Map<String, Object> queryMap) {
        return researcherMapper.getTotal(queryMap);
    }
}


